/*
 * To change this template, choose Tools;Templates
 * and open the template in the editor.
 */

/*
 * Interface.java
 *
 * Created on 1/05/2011, 12:47:08 PM
 */
package Visual;

import Negocio.Fecha;
import Manager.*;
import Negocio.Ciudad;
import Negocio.Empleado;
import Negocio.Itinerario;
import Negocio.Vehiculos;
import java.awt.Component;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.PlainDocument;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.plaf.FileChooserUI;

/**
 *
 * @author Abaddon
 */
public class Interface extends javax.swing.JFrame {

    private ManagerEmpleado agregar = new ManagerEmpleado();
    private ManagerVehiculos agregarVehiculo = new ManagerVehiculos();
    private ManagerCiudad agregarCiudad = new ManagerCiudad();
    private ManagerItinerario agregarItinerario = new ManagerItinerario();
    private Component frame;

    /** Creates new form Interface */
    public Interface() {
        initComponents();
        this.comboDiaInicio.setEnabled(false);
        this.comboMesInicio.setEnabled(false);
        this.comboAnioInicio.setEnabled(false);
        this.comboDiaFin.setEnabled(false);
        this.comboMesFin.setEnabled(false);
        this.comboAnioFin.setEnabled(false);
        this.textProveedor.setEditable(false);
        this.textValorPagadoServicio.setEnabled(false);
    }

    class LimitadorCaracteres extends PlainDocument {

        /**
         * Método al que llama el editor cada vez que se intenta insertar caracteres.
         * Sólo debemos verificar arg1, que es la cadena que se quiere insertar en el JTextField
         */
        public void insertString(int arg0, String arg1, AttributeSet arg2) throws BadLocationException {
            for (int i = 0; i < arg1.length(); i++) // si no es digit, volvemos
            {
                if (!Character.isDigit(arg1.charAt(i))) {
                    return;
                }
            }

            // Si todos son digit, insertamos el texto en el JTextField
            super.insertString(arg0, arg1, arg2);
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel = new javax.swing.JPanel();
        labelTitulo = new javax.swing.JLabel();
        textCedula = new javax.swing.JTextField();
        textNombre = new javax.swing.JTextField();
        TextApellido = new javax.swing.JTextField();
        comboDia = new javax.swing.JComboBox();
        comboMes = new javax.swing.JComboBox();
        comboAnio = new javax.swing.JComboBox();
        textEmail = new javax.swing.JTextField();
        textSalario = new javax.swing.JTextField();
        textTelefono = new javax.swing.JTextField();
        textFoto = new javax.swing.JTextField();
        labelCedula = new javax.swing.JLabel();
        labelApellido = new javax.swing.JLabel();
        labelSalario = new javax.swing.JLabel();
        labelTelefono = new javax.swing.JLabel();
        labelEmail = new javax.swing.JLabel();
        labelFoto = new javax.swing.JLabel();
        labelNombre = new javax.swing.JLabel();
        botonAgregarEmpleado = new javax.swing.JButton();
        botonConsultarEmpleado = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaEmpleados = new javax.swing.JTable();
        jLabel3 = new javax.swing.JLabel();
        botonCalcularNomina = new javax.swing.JButton();
        botonBuscarNombre = new javax.swing.JButton();
        botonBuscarCedula = new javax.swing.JButton();
        botonGuardadEmpleado = new javax.swing.JButton();
        botonImportarEmpleado = new javax.swing.JButton();
        panelVehiculos = new javax.swing.JPanel();
        labelCapacidadDeCarga = new javax.swing.JLabel();
        textCapacidadDeCarga = new javax.swing.JTextField();
        labelCilindraje = new javax.swing.JLabel();
        textCilindraje = new javax.swing.JTextField();
        labelModelo = new javax.swing.JLabel();
        textNombreV = new javax.swing.JTextField();
        textPlaca = new javax.swing.JTextField();
        textMarca = new javax.swing.JTextField();
        labelMarca = new javax.swing.JLabel();
        labelPlaca = new javax.swing.JLabel();
        labelNombreV = new javax.swing.JLabel();
        botonAgregarVehiculo = new javax.swing.JButton();
        labelFechaIncio = new javax.swing.JLabel();
        comboDiaInicio = new javax.swing.JComboBox();
        comboMesInicio = new javax.swing.JComboBox();
        comboAnioInicio = new javax.swing.JComboBox();
        labelFechaFin = new javax.swing.JLabel();
        comboDiaFin = new javax.swing.JComboBox();
        comboMesFin = new javax.swing.JComboBox();
        comboAnioFin = new javax.swing.JComboBox();
        textProveedor = new javax.swing.JTextField();
        labelProveedor = new javax.swing.JLabel();
        textValorPagadoServicio = new javax.swing.JTextField();
        labelValorPagadoServicio = new javax.swing.JLabel();
        comboModelo = new javax.swing.JComboBox();
        comboFrenos = new javax.swing.JComboBox();
        labelSistemaFrenos = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tablaVehiculos = new javax.swing.JTable();
        botonConsultaVehiculo = new javax.swing.JButton();
        labelTituloVehiculo = new javax.swing.JLabel();
        comboChevy = new javax.swing.JComboBox();
        labelChevy = new javax.swing.JLabel();
        botonValorAPagarChevystar = new javax.swing.JButton();
        botonBuscarPlaca = new javax.swing.JButton();
        botonBuscarAbs = new javax.swing.JButton();
        botonBuscarVehiculosChevystar = new javax.swing.JButton();
        botonImportarVehiculo = new javax.swing.JButton();
        botonGuardadVehiculo = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        botonAgregarCiudad = new javax.swing.JButton();
        botonConsultarCiudades = new javax.swing.JButton();
        textNuevaCiudad = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        tablaCiudad = new javax.swing.JTable();
        botonGuardadCiudad = new javax.swing.JButton();
        botonImportarCiudad = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tablaItinerario = new javax.swing.JTable();
        labelNombreConductor = new javax.swing.JLabel();
        botonAgregarItinerario = new javax.swing.JButton();
        labelDescripcionItinerario = new javax.swing.JLabel();
        labelNombreServicio = new javax.swing.JLabel();
        labelCiudadOrigen = new javax.swing.JLabel();
        jButton3 = new javax.swing.JButton();
        labelCiudadDestino = new javax.swing.JLabel();
        labelPlaca1 = new javax.swing.JLabel();
        textNombreServicio = new javax.swing.JTextField();
        labelItinerario = new javax.swing.JLabel();
        comboAnioRegistro = new javax.swing.JComboBox();
        comboMesRegistro = new javax.swing.JComboBox();
        labelFechaRegistro = new javax.swing.JLabel();
        comboDiaRegistro = new javax.swing.JComboBox();
        comboConductor = new javax.swing.JComboBox();
        comboCiudadOrigen = new javax.swing.JComboBox();
        comboPlaca = new javax.swing.JComboBox();
        comboCiudadDestino = new javax.swing.JComboBox();
        jScrollPane4 = new javax.swing.JScrollPane();
        textDescripcion = new javax.swing.JTextArea();
        comboMesSalida = new javax.swing.JComboBox();
        comboAnioSalida = new javax.swing.JComboBox();
        labelFechaSalida = new javax.swing.JLabel();
        comboDiaSalida = new javax.swing.JComboBox();
        comboMesEntrega = new javax.swing.JComboBox();
        comboDiaEntrega = new javax.swing.JComboBox();
        comboAnioEntrega = new javax.swing.JComboBox();
        labelFechaEntrega = new javax.swing.JLabel();
        buscarDestinos = new javax.swing.JButton();
        botonGuardadItinerario = new javax.swing.JButton();
        botonImportarItinerario = new javax.swing.JButton();

        jLabel2.setText("jLabel2");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Turbo Entregas LTDA.");
        setAlwaysOnTop(true);

        labelTitulo.setFont(new java.awt.Font("Arial Narrow", 1, 36));
        labelTitulo.setText("INFORMACION EMPLEADO");

        textCedula.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                textCedulaFocusGained(evt);
            }
        });

        comboDia.setFont(new java.awt.Font("Tahoma", 1, 11));
        comboDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Día", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboMes.setFont(new java.awt.Font("Tahoma", 1, 11));
        comboMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        comboAnio.setFont(new java.awt.Font("Tahoma", 1, 11));
        comboAnio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000" }));

        textSalario.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                textSalarioFocusGained(evt);
            }
        });

        labelCedula.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelCedula.setText("Cedula:");

        labelApellido.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelApellido.setText("Apellido:");

        labelSalario.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelSalario.setText("Salario:");

        labelTelefono.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelTelefono.setText("Telefono:");

        labelEmail.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelEmail.setText("E-mail:");

        labelFoto.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelFoto.setText("URL Foto:");

        labelNombre.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelNombre.setText("Nombre:");

        botonAgregarEmpleado.setFont(new java.awt.Font("Arial Narrow", 1, 14));
        botonAgregarEmpleado.setText("AGREGAR");
        botonAgregarEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarEmpleadoActionPerformed(evt);
            }
        });

        botonConsultarEmpleado.setFont(new java.awt.Font("Arial Narrow", 1, 14));
        botonConsultarEmpleado.setText("CONSULTAR EMPLEADO");
        botonConsultarEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonConsultarEmpleadoActionPerformed(evt);
            }
        });

        tablaEmpleados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Cedula", "Nombre", "Apellido", "Fecha Nacimiento", "E-mail", "Salario", "Telefono", "URL Foto"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, true
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tablaEmpleados);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel3.setText("Fecha de nacimiento:");

        botonCalcularNomina.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonCalcularNomina.setText("CALCULAR NOMINA");
        botonCalcularNomina.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonCalcularNominaActionPerformed(evt);
            }
        });

        botonBuscarNombre.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonBuscarNombre.setText("BUSCAR POR NOMBRE");
        botonBuscarNombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonBuscarNombreActionPerformed(evt);
            }
        });

        botonBuscarCedula.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonBuscarCedula.setText("BUSCAR POR CEDULA");
        botonBuscarCedula.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonBuscarCedulaActionPerformed(evt);
            }
        });

        botonGuardadEmpleado.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonGuardadEmpleado.setText("GUARDAR");
        botonGuardadEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGuardadEmpleadoActionPerformed(evt);
            }
        });

        botonImportarEmpleado.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonImportarEmpleado.setText("IMPORTAR");
        botonImportarEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonImportarEmpleadoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelLayout = new javax.swing.GroupLayout(jPanel);
        jPanel.setLayout(jPanelLayout);
        jPanelLayout.setHorizontalGroup(
            jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLayout.createSequentialGroup()
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelLayout.createSequentialGroup()
                        .addGap(461, 461, 461)
                        .addComponent(labelTitulo))
                    .addGroup(jPanelLayout.createSequentialGroup()
                        .addGap(206, 206, 206)
                        .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(labelCedula)
                            .addComponent(labelApellido)
                            .addComponent(labelFoto)
                            .addComponent(labelTelefono)
                            .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(botonAgregarEmpleado)
                                .addComponent(jLabel3)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(textFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 316, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanelLayout.createSequentialGroup()
                                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addGroup(jPanelLayout.createSequentialGroup()
                                            .addComponent(botonConsultarEmpleado)
                                            .addGap(36, 36, 36)
                                            .addComponent(botonCalcularNomina)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(botonBuscarNombre))
                                        .addGroup(jPanelLayout.createSequentialGroup()
                                            .addComponent(textCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(18, 18, 18)
                                            .addComponent(labelNombre)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(textNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelLayout.createSequentialGroup()
                                            .addComponent(TextApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(labelEmail)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(textEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanelLayout.createSequentialGroup()
                                            .addComponent(labelSalario)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(textSalario, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanelLayout.createSequentialGroup()
                                        .addComponent(comboDia, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(comboAnio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(textTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanelLayout.createSequentialGroup()
                                        .addGap(18, 18, 18)
                                        .addComponent(botonBuscarCedula))
                                    .addGroup(jPanelLayout.createSequentialGroup()
                                        .addGap(40, 40, 40)
                                        .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(botonGuardadEmpleado, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(botonImportarEmpleado, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1309, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {TextApellido, textCedula, textEmail, textNombre, textSalario});

        jPanelLayout.setVerticalGroup(
            jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(labelTitulo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelCedula)
                    .addComponent(textCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelNombre)
                    .addComponent(textNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(botonGuardadEmpleado))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(TextApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelEmail)
                    .addComponent(textEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelApellido)
                    .addComponent(botonImportarEmpleado))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(comboDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3)
                    .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(comboAnio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelSalario)
                    .addComponent(textSalario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTelefono)
                    .addComponent(textTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelFoto)
                    .addComponent(textFoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonAgregarEmpleado)
                    .addComponent(botonConsultarEmpleado)
                    .addComponent(botonCalcularNomina)
                    .addComponent(botonBuscarNombre)
                    .addComponent(botonBuscarCedula))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
                .addGap(205, 205, 205))
        );

        jPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {TextApellido, textCedula, textEmail, textNombre, textSalario});

        jTabbedPane1.addTab("Empleado", jPanel);

        labelCapacidadDeCarga.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelCapacidadDeCarga.setText("Capacidad de carga:");

        textCapacidadDeCarga.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                textCapacidadDeCargaFocusGained(evt);
            }
        });

        labelCilindraje.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelCilindraje.setText("Cilindraje:");

        textCilindraje.setToolTipText("Ingrese el cilindraje en CC");
        textCilindraje.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                textCilindrajeFocusGained(evt);
            }
        });

        labelModelo.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelModelo.setText("Modelo:");

        textNombreV.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                textNombreVFocusGained(evt);
            }
        });

        labelMarca.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelMarca.setText("Marca:");

        labelPlaca.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelPlaca.setText("Placa:");

        labelNombreV.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelNombreV.setText("Nombre:");

        botonAgregarVehiculo.setFont(new java.awt.Font("Arial Narrow", 1, 14));
        botonAgregarVehiculo.setText("AGREGAR");
        botonAgregarVehiculo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarVehiculoActionPerformed(evt);
            }
        });

        labelFechaIncio.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelFechaIncio.setText("Fecha Incio:");

        comboDiaInicio.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboDiaInicio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Día", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboMesInicio.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboMesInicio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        comboAnioInicio.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboAnioInicio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));

        labelFechaFin.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelFechaFin.setText("Fecha Fin:");

        comboDiaFin.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboDiaFin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Día", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboMesFin.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboMesFin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        comboAnioFin.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboAnioFin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));

        labelProveedor.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelProveedor.setText("Proveedor:");

        labelValorPagadoServicio.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelValorPagadoServicio.setText("Valor servicio:");

        comboModelo.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboModelo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013" }));

        comboFrenos.setFont(new java.awt.Font("Tahoma", 3, 12));
        comboFrenos.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Convencional", "ABS" }));

        labelSistemaFrenos.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelSistemaFrenos.setText("Sistema frenos:");

        tablaVehiculos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Nombre", "Placa", "Marca", "Modelo", "Cilindraje", "Capacidad de carga", "Sistema de frenos", "Chevystar", "Fecha inicio", "Fecha fin", "Proveedor", "Valor servicio"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane2.setViewportView(tablaVehiculos);

        botonConsultaVehiculo.setFont(new java.awt.Font("Arial Narrow", 1, 14));
        botonConsultaVehiculo.setText("CONSULTAR");
        botonConsultaVehiculo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonConsultaVehiculoActionPerformed(evt);
            }
        });

        labelTituloVehiculo.setFont(new java.awt.Font("Arial Narrow", 1, 36));
        labelTituloVehiculo.setText("INFORMACION VEHICULO");

        comboChevy.setFont(new java.awt.Font("Tahoma", 1, 14));
        comboChevy.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));
        comboChevy.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboChevyActionPerformed(evt);
            }
        });

        labelChevy.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelChevy.setText("ChevyStar");

        botonValorAPagarChevystar.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonValorAPagarChevystar.setText("VALOR A PAGAR CHEVYSTAR");
        botonValorAPagarChevystar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonValorAPagarChevystarActionPerformed(evt);
            }
        });

        botonBuscarPlaca.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonBuscarPlaca.setText("BUSCAR POR PLACA");
        botonBuscarPlaca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonBuscarPlacaActionPerformed(evt);
            }
        });

        botonBuscarAbs.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonBuscarAbs.setText("MOSTRAR VEHICULOS CON ABS");
        botonBuscarAbs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonBuscarAbsActionPerformed(evt);
            }
        });

        botonBuscarVehiculosChevystar.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonBuscarVehiculosChevystar.setText("MOSTRAR VEHICULOS CON CHEVYSTAR");
        botonBuscarVehiculosChevystar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonBuscarVehiculosChevystarActionPerformed(evt);
            }
        });

        botonImportarVehiculo.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        botonImportarVehiculo.setText("IMPORTAR");
        botonImportarVehiculo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonImportarVehiculoActionPerformed(evt);
            }
        });

        botonGuardadVehiculo.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        botonGuardadVehiculo.setText("GUARDAR");
        botonGuardadVehiculo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGuardadVehiculoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelVehiculosLayout = new javax.swing.GroupLayout(panelVehiculos);
        panelVehiculos.setLayout(panelVehiculosLayout);
        panelVehiculosLayout.setHorizontalGroup(
            panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelVehiculosLayout.createSequentialGroup()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1327, Short.MAX_VALUE)
                .addGap(428, 428, 428))
            .addGroup(panelVehiculosLayout.createSequentialGroup()
                .addGap(262, 262, 262)
                .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labelNombreV)
                            .addComponent(labelMarca))
                        .addGap(18, 18, 18)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(textNombreV, javax.swing.GroupLayout.PREFERRED_SIZE, 342, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addComponent(labelCilindraje)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(textCilindraje, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(labelChevy)
                            .addComponent(labelFechaIncio)
                            .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(panelVehiculosLayout.createSequentialGroup()
                                    .addGap(21, 21, 21)
                                    .addComponent(labelProveedor))
                                .addComponent(labelFechaFin, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(labelValorPagadoServicio, javax.swing.GroupLayout.Alignment.TRAILING)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelVehiculosLayout.createSequentialGroup()
                                .addComponent(comboDiaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(comboMesInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(comboAnioInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(panelVehiculosLayout.createSequentialGroup()
                                .addComponent(comboDiaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(comboMesFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(comboAnioFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(textValorPagadoServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textProveedor, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboChevy, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(154, 154, 154)
                .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addComponent(botonBuscarVehiculosChevystar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 93, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addComponent(botonBuscarAbs)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 141, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addComponent(botonBuscarPlaca)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 209, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addComponent(botonValorAPagarChevystar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 155, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(panelVehiculosLayout.createSequentialGroup()
                            .addComponent(labelSistemaFrenos)
                            .addGap(18, 18, 18)
                            .addComponent(comboFrenos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelVehiculosLayout.createSequentialGroup()
                            .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(panelVehiculosLayout.createSequentialGroup()
                                    .addComponent(labelCapacidadDeCarga)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(textCapacidadDeCarga, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(panelVehiculosLayout.createSequentialGroup()
                                    .addComponent(labelPlaca)
                                    .addGap(18, 18, 18)
                                    .addComponent(textPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(panelVehiculosLayout.createSequentialGroup()
                                    .addComponent(labelModelo)
                                    .addGap(18, 18, 18)
                                    .addComponent(comboModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(134, 134, 134)))
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(botonConsultaVehiculo)
                            .addComponent(botonAgregarVehiculo))
                        .addGap(162, 162, 162)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(botonGuardadVehiculo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(botonImportarVehiculo, javax.swing.GroupLayout.Alignment.LEADING))))
                .addGap(138, 138, 138))
            .addGroup(panelVehiculosLayout.createSequentialGroup()
                .addGap(462, 462, 462)
                .addComponent(labelTituloVehiculo)
                .addContainerGap(499, Short.MAX_VALUE))
        );
        panelVehiculosLayout.setVerticalGroup(
            panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelVehiculosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelTituloVehiculo)
                .addGap(11, 11, 11)
                .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelNombreV)
                            .addComponent(textNombreV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelMarca)
                            .addComponent(textMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelCilindraje)
                            .addComponent(textCilindraje, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboChevy, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelChevy))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboDiaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboMesInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboAnioInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelFechaIncio))
                        .addGap(8, 8, 8)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboDiaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboMesFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboAnioFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelFechaFin))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelProveedor)
                            .addComponent(textProveedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelValorPagadoServicio)
                            .addComponent(textValorPagadoServicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(panelVehiculosLayout.createSequentialGroup()
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelPlaca)
                            .addComponent(textPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelModelo)
                            .addComponent(comboModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelCapacidadDeCarga)
                            .addComponent(textCapacidadDeCarga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboFrenos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelSistemaFrenos))
                        .addGap(18, 18, 18)
                        .addGroup(panelVehiculosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelVehiculosLayout.createSequentialGroup()
                                .addComponent(botonGuardadVehiculo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(botonImportarVehiculo))
                            .addGroup(panelVehiculosLayout.createSequentialGroup()
                                .addComponent(botonAgregarVehiculo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(botonConsultaVehiculo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(botonValorAPagarChevystar)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(botonBuscarPlaca)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonBuscarAbs)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonBuscarVehiculosChevystar)))
                .addGap(27, 27, 27)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Vehiculo", panelVehiculos);

        jLabel1.setFont(new java.awt.Font("Arial Narrow", 1, 36));
        jLabel1.setText("ADMINISTRACION DE LAS CIUDADES");

        botonAgregarCiudad.setFont(new java.awt.Font("Arial Narrow", 1, 14)); // NOI18N
        botonAgregarCiudad.setText("AGREGAR NUEVA CIUDAD");
        botonAgregarCiudad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarCiudadActionPerformed(evt);
            }
        });

        botonConsultarCiudades.setFont(new java.awt.Font("Arial Narrow", 1, 14)); // NOI18N
        botonConsultarCiudades.setText("CONSULTAR CIUDADES");
        botonConsultarCiudades.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonConsultarCiudadesActionPerformed(evt);
            }
        });

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel4.setText("Digite el nombre de la ciudad a agregar:");

        tablaCiudad.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null},
                {null},
                {null},
                {null}
            },
            new String [] {
                "Ciudad"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane5.setViewportView(tablaCiudad);

        botonGuardadCiudad.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        botonGuardadCiudad.setText("GUARDAR");
        botonGuardadCiudad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGuardadCiudadActionPerformed(evt);
            }
        });

        botonImportarCiudad.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        botonImportarCiudad.setText("IMPORTAR");
        botonImportarCiudad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonImportarCiudadActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(378, 378, 378)
                        .addComponent(jLabel1))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(542, 542, 542)
                        .addComponent(textNuevaCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(392, 392, 392)
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(512, 512, 512)
                        .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(438, 438, 438)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(botonGuardadCiudad, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(botonAgregarCiudad, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(botonImportarCiudad, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(botonConsultarCiudades, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap(419, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabel1)
                .addGap(76, 76, 76)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(textNuevaCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonAgregarCiudad)
                    .addComponent(botonConsultarCiudades))
                .addGap(13, 13, 13)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonGuardadCiudad)
                    .addComponent(botonImportarCiudad))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(154, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Ciudad", jPanel3);

        tablaItinerario.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Nombre del Servicio", "Nombre del Conductor", "Fecha de Registro", "Ciudad Origen", "Fecha de Salida", "Ciudad Destino", "Fecha de Entrega", "Placa", "Descripción"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, true, true
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane3.setViewportView(tablaItinerario);

        labelNombreConductor.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelNombreConductor.setText("Nombre del Conductor:");

        botonAgregarItinerario.setFont(new java.awt.Font("Arial Narrow", 1, 14));
        botonAgregarItinerario.setText("AGREGAR ITINERARIO");
        botonAgregarItinerario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAgregarItinerarioActionPerformed(evt);
            }
        });

        labelDescripcionItinerario.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelDescripcionItinerario.setText("Descripcion del Itinerario:");

        labelNombreServicio.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelNombreServicio.setText("Nombre del Servicio:");

        labelCiudadOrigen.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelCiudadOrigen.setText("Ciudad Origen:");

        jButton3.setFont(new java.awt.Font("Arial Narrow", 1, 14));
        jButton3.setText("CONSULTAR ITINERARIOS");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        labelCiudadDestino.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelCiudadDestino.setText("Ciudad Destino:");

        labelPlaca1.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelPlaca1.setText("Placa:");

        textNombreServicio.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                textNombreServicioFocusGained(evt);
            }
        });

        labelItinerario.setFont(new java.awt.Font("Arial Narrow", 1, 36));
        labelItinerario.setText("AGREGAR ITINERARIO");

        comboAnioRegistro.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboAnioRegistro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000" }));

        comboMesRegistro.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboMesRegistro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        labelFechaRegistro.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelFechaRegistro.setText("Fecha de Registro:");

        comboDiaRegistro.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboDiaRegistro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Día", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboConductor.setFont(new java.awt.Font("Tahoma", 1, 12));

        comboCiudadOrigen.setFont(new java.awt.Font("Tahoma", 1, 12));

        comboPlaca.setFont(new java.awt.Font("Tahoma", 1, 12));

        comboCiudadDestino.setFont(new java.awt.Font("Tahoma", 1, 12));

        textDescripcion.setColumns(20);
        textDescripcion.setRows(5);
        jScrollPane4.setViewportView(textDescripcion);

        comboMesSalida.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboMesSalida.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        comboAnioSalida.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboAnioSalida.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000" }));

        labelFechaSalida.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelFechaSalida.setText("Fecha de Salida:");

        comboDiaSalida.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboDiaSalida.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Día", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboMesEntrega.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboMesEntrega.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mes", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        comboDiaEntrega.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboDiaEntrega.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Día", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        comboAnioEntrega.setFont(new java.awt.Font("Tahoma", 1, 12));
        comboAnioEntrega.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Año", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000" }));

        labelFechaEntrega.setFont(new java.awt.Font("Tahoma", 1, 12));
        labelFechaEntrega.setText("Fecha de Entrega:");

        buscarDestinos.setFont(new java.awt.Font("Arial Narrow", 1, 14));
        buscarDestinos.setText("CONSULTAR DESTINOS");
        buscarDestinos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarDestinosActionPerformed(evt);
            }
        });

        botonGuardadItinerario.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        botonGuardadItinerario.setText("GUARDAR");
        botonGuardadItinerario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGuardadItinerarioActionPerformed(evt);
            }
        });

        botonImportarItinerario.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        botonImportarItinerario.setText("IMPORTAR");
        botonImportarItinerario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonImportarItinerarioActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(460, 460, 460)
                        .addComponent(labelItinerario))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(72, 72, 72)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labelPlaca1, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(labelCiudadDestino, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(labelDescripcionItinerario, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(labelCiudadOrigen, javax.swing.GroupLayout.Alignment.TRAILING))
                                .addGap(23, 23, 23))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(labelNombreConductor)
                                    .addComponent(labelNombreServicio))
                                .addGap(18, 18, 18)))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(27, 27, 27)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(botonAgregarItinerario)
                                        .addComponent(buscarDestinos))
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(botonGuardadItinerario, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(botonImportarItinerario, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(comboConductor, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(comboCiudadDestino, javax.swing.GroupLayout.Alignment.LEADING, 0, 71, Short.MAX_VALUE)
                                    .addComponent(comboCiudadOrigen, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboPlaca, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(130, 130, 130)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(labelFechaEntrega, javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(labelFechaSalida, javax.swing.GroupLayout.Alignment.TRAILING))
                                    .addComponent(labelFechaRegistro))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                                    .addComponent(comboDiaEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboDiaSalida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(comboDiaRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                            .addComponent(comboMesEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(comboAnioEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                            .addComponent(comboMesSalida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(comboAnioSalida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(comboMesRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(comboAnioRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addComponent(textNombreServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 1299, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(labelItinerario)
                        .addGap(32, 32, 32)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textNombreServicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelNombreServicio))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboConductor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelNombreConductor, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboCiudadOrigen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelCiudadOrigen))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelCiudadDestino)
                            .addComponent(comboCiudadDestino, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(labelPlaca1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(labelDescripcionItinerario))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(comboPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(botonAgregarItinerario)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jButton3)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(buscarDestinos)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(botonGuardadItinerario)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(botonImportarItinerario))
                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(129, 129, 129)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboDiaRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboMesRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboAnioRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelFechaRegistro))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboDiaSalida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboMesSalida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboAnioSalida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelFechaSalida))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboDiaEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboMesEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboAnioEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelFechaEntrega))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 101, Short.MAX_VALUE)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50))
        );

        jTabbedPane1.addTab("Itinerario", jPanel2);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1336, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 877, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botonAgregarEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarEmpleadoActionPerformed


        try {
            /**
             * Se crean las variable temporales donde se capturaran la información del formulario
             */
            long cedula;
            String nombreEmpleado, apellidoEmpleado, email, foto, telefono;
            float salario;
            int dia, mes, anio;
            int variableBandera = 0;
            /**
             * Se procede a capturar la información de los respectivos jTextFields y jComboBox
             * y se guardan en las variables temporales creadas anteriormente.
             */
            cedula = Long.parseLong(this.textCedula.getText());
            nombreEmpleado = this.textNombre.getText();
            apellidoEmpleado = this.TextApellido.getText();
            dia = Integer.parseInt(comboDia.getSelectedItem().toString());
            mes = Integer.parseInt(comboMes.getSelectedItem().toString());
            anio = Integer.parseInt(comboAnio.getSelectedItem().toString());
            email = this.textEmail.getText();
            salario = Float.parseFloat(this.textSalario.getText());
            telefono = this.textTelefono.getText();
            foto = this.textFoto.getText();
            /**
             * Se crean los objetos de tipo Empleado y Fecha, con el fin de poder enviar la información previamente capturada.
             */
            Empleado empleado = new Empleado();
            Fecha fecha = new Fecha();
            /**
             *Se valida primero si el arrayList de Empleados se encuentra vacio, si no lo esta, se agregan los datos por primera vez
             * de lo contrario pasa a realizar el proceso de validación con el fin de no duplicar archivos.
             */
            if (agregar.getvEmpleado().isEmpty()) {
                fecha.setDia(dia);
                fecha.setMes(mes);
                fecha.setAnio(anio);
                empleado.setCedula(cedula);
                empleado.setNombreEmpleado(nombreEmpleado);
                empleado.setApellidoEmpleado(apellidoEmpleado);
                empleado.setFechaNacimiento(fecha);
                empleado.setEmail(email);
                empleado.setSalario(salario);
                empleado.setTelefonoEmpleado(telefono);
                empleado.setFotoEmpleado(foto);

                /**
                 * Se agregan el objeto de tipo empleado al arrayListo de Empleados.
                 */
                agregar.agregarEmpleado(empleado);
                this.comboConductor.addItem(nombreEmpleado);
                JOptionPane.showMessageDialog(frame, "Se ha creado el empleado");

            } else {
                /**
                 * Se procede a verificar el array con el fin de identificar si la cedula introducida en textCedula, ya se encuentra registrada
                 * Para esto se hace uso de una variable bandera, la cual inicia en 0 y si encuentra la cedula en el array se cambia el valor a 1
                 */
                for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
                    if (agregar.getvEmpleado().get(i).getCedula() == cedula) {
                        variableBandera = 1;
                    }
                    /**
                     * Se valida el valor de la variableBandera con el fin de saber si se encontro la cedula previamente o es un nuevo registro.
                     */
                }
                if (variableBandera == 1) {
                    JOptionPane.showMessageDialog(frame, "El empleado con la cedula No: " + String.valueOf(cedula) + " ya se encuentra registrado");
                } else {
                    fecha.setDia(dia);
                    fecha.setMes(mes);
                    fecha.setAnio(anio);

                    empleado.setCedula(cedula);
                    empleado.setNombreEmpleado(nombreEmpleado);
                    empleado.setApellidoEmpleado(apellidoEmpleado);
                    empleado.setFechaNacimiento(fecha);
                    empleado.setEmail(email);
                    empleado.setSalario(salario);
                    empleado.setTelefonoEmpleado(telefono);
                    empleado.setFotoEmpleado(foto);

                    agregar.agregarEmpleado(empleado);
                    this.comboConductor.addItem(nombreEmpleado);
                    JOptionPane.showMessageDialog(frame, "Se ha creado el usuario");

                }

            }
            /**
             * Se limpia el formulario para el registro de un nuevo Empleado
             */
            this.textCedula.setText("");
            this.textNombre.setText("");
            this.TextApellido.setText("");
            this.comboDia.setSelectedIndex(0);
            this.comboMes.setSelectedIndex(0);
            this.comboAnio.setSelectedIndex(0);
            this.textEmail.setText("");
            this.textSalario.setText("");
            this.textTelefono.setText("");
            this.textFoto.setText("");


        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(frame, "Todos los campos deben estar completos!!!!!!");
        }

    }//GEN-LAST:event_botonAgregarEmpleadoActionPerformed

    private void botonConsultarEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonConsultarEmpleadoActionPerformed

        /**
         * Se crea un ubjeto de tipo DefaultTableModel
         */
        DefaultTableModel modelo = (DefaultTableModel) this.tablaEmpleados.getModel(); // para manipular el objeto en un modelo
        modelo.setRowCount(0);
        /**
         * Se crea un ciclo para analizar cada pocision del arrayList de Empleados
         */
        for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
            /**
             * Se crea un objeto temporal en el cual se van a guardar la información encontrada en la i-esima posición.
             * Adicionalmente se crean variables temporales las cuales seran enviadas al objeto que se mostrara en el jTable.
             */
            Empleado e = agregar.getvEmpleado().get(i);
            long cedula;
            String nombre, apellido, email, foto, telefono;
            float salario;
            Fecha fecha;

            nombre = e.getNombreEmpleado();
            apellido = e.getApellidoEmpleado();
            cedula = e.getCedula();
            email = e.getEmail();
            salario = e.getSalario();
            foto = e.getFotoEmpleado();
            telefono = e.getTelefonoEmpleado();
            fecha = e.getFechaNacimiento();

            /**
             * Se crea un arreglo de tipo Object, en donde seran guardados los datos tomados de la i-esima posición del array de Empleados.
             */
            Object obj[] = {cedula, nombre, apellido, fecha, email, salario, telefono, foto};
            /**
             * Se añade una nueva fila con la información que tiene el array obj[].
             */
            modelo.addRow(obj);

        }


    }//GEN-LAST:event_botonConsultarEmpleadoActionPerformed

    /**
     *
     * El metodo LimitadorCaracteres() permite restringir de caracteres diferentes a los numericos.
     * Este metodo se ejecuta cuando se gana el focus de cada jTextField
     */
    private void textCedulaFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textCedulaFocusGained
        textCedula.setDocument(new LimitadorCaracteres());
    }//GEN-LAST:event_textCedulaFocusGained
    private void textSalarioFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textSalarioFocusGained
        textSalario.setDocument(new LimitadorCaracteres());
    }//GEN-LAST:event_textSalarioFocusGained
    private void textCilindrajeFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textCilindrajeFocusGained
        textCilindraje.setDocument(new LimitadorCaracteres());
    }//GEN-LAST:event_textCilindrajeFocusGained
    private void textNombreVFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textNombreVFocusGained
        // TODO add your handling code here:
    }//GEN-LAST:event_textNombreVFocusGained

    private void botonAgregarVehiculoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarVehiculoActionPerformed



        try {
            /**
             * Se crean las variable temporales donde se capturaran la información del formulario
             */
            String proveedor, chevystar, nombreVehiculo, placaVehiculo, sistemaAbs, marca;
            int cilindraje, capacidadDeCarga, modeloVehiculo, diaFin, mesFin, anioFin, diaInicio, mesInicio, anioInicio;
            float valorServicio;
            int variableBandera = 0;

            /**
             * Se valida si el vehiculo tiene el servicio ChevyStar
             */
            chevystar = this.comboChevy.getSelectedItem().toString();
            if (chevystar.equals("Si")) {
                nombreVehiculo = this.textNombreV.getText();
                placaVehiculo = this.textPlaca.getText();
                proveedor = this.textProveedor.getText();
                marca = this.textMarca.getText();
                cilindraje = Integer.parseInt(this.textCilindraje.getText());
                capacidadDeCarga = Integer.parseInt(this.textCapacidadDeCarga.getText());
                modeloVehiculo = Integer.parseInt(this.comboModelo.getSelectedItem().toString());
                valorServicio = Float.parseFloat(this.textValorPagadoServicio.getText());
                chevystar = this.comboChevy.getSelectedItem().toString();
                sistemaAbs = this.comboFrenos.getSelectedItem().toString();
                diaInicio = Integer.parseInt(this.comboDiaInicio.getSelectedItem().toString());
                diaFin = Integer.parseInt(this.comboDiaFin.getSelectedItem().toString());
                mesInicio = Integer.parseInt(this.comboMesInicio.getSelectedItem().toString());
                mesFin = Integer.parseInt(this.comboMesFin.getSelectedItem().toString());
                anioInicio = Integer.parseInt(this.comboAnioInicio.getSelectedItem().toString());
                anioFin = Integer.parseInt(this.comboAnioFin.getSelectedItem().toString());

                Vehiculos vehiculo = new Vehiculos();
                Fecha fechaInicio = new Fecha();
                Fecha fechaFin = new Fecha();

                if (agregarVehiculo.getvVehiculo().isEmpty()) {
                    fechaInicio.setDia(diaInicio);
                    fechaInicio.setMes(mesInicio);
                    fechaInicio.setAnio(anioInicio);
                    fechaFin.setDia(diaFin);
                    fechaFin.setMes(mesFin);
                    fechaFin.setAnio(anioFin);
                    vehiculo.setNombreVehiculo(nombreVehiculo);
                    vehiculo.setPlacaVehiculo(placaVehiculo);
                    vehiculo.setSistemaAbs(sistemaAbs);
                    vehiculo.setMarca(marca);
                    vehiculo.setCilindraje(cilindraje);
                    vehiculo.setCapacidadDeCarga(capacidadDeCarga);
                    vehiculo.setModeloVehiculo(modeloVehiculo);
                    vehiculo.setChevystar(chevystar);
                    vehiculo.setValorPagadoServicio(valorServicio);
                    vehiculo.setProveedor(proveedor);
                    vehiculo.setFechaInicio(fechaInicio);
                    vehiculo.setFechaFin(fechaFin);

                    this.agregarVehiculo.agregarVehiculo(vehiculo);
                    this.comboPlaca.addItem(placaVehiculo);
                    JOptionPane.showMessageDialog(frame, "Se ha creado el Vehiculo con placa " + placaVehiculo);


                } else {
                    for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
                        if (agregarVehiculo.getvVehiculo().get(i).getPlacaVehiculo().equals(placaVehiculo)) {
                            variableBandera = 1;
                        }
                    }
                    if (variableBandera == 1) {
                        JOptionPane.showMessageDialog(frame, "El vehiculo con placa " + String.valueOf(placaVehiculo) + " ya se encuentra registrado");
                    } else {
                        fechaInicio.setDia(diaInicio);
                        fechaInicio.setMes(mesInicio);
                        fechaInicio.setAnio(anioInicio);

                        fechaFin.setDia(diaFin);
                        fechaFin.setMes(mesFin);
                        fechaFin.setAnio(anioFin);

                        vehiculo.setNombreVehiculo(nombreVehiculo);
                        vehiculo.setPlacaVehiculo(placaVehiculo);
                        vehiculo.setSistemaAbs(sistemaAbs);
                        vehiculo.setMarca(marca);
                        vehiculo.setCilindraje(cilindraje);
                        vehiculo.setCapacidadDeCarga(capacidadDeCarga);
                        vehiculo.setModeloVehiculo(modeloVehiculo);
                        vehiculo.setChevystar(chevystar);
                        vehiculo.setValorPagadoServicio(valorServicio);
                        vehiculo.setProveedor(proveedor);
                        vehiculo.setFechaInicio(fechaInicio);
                        vehiculo.setFechaFin(fechaFin);

                        agregarVehiculo.agregarVehiculo(vehiculo);
                        this.comboPlaca.addItem(placaVehiculo);
                        JOptionPane.showMessageDialog(frame, "Se ha creado el Vehiculo con placa " + placaVehiculo);
                    }
                }

            } else {
                nombreVehiculo = this.textNombreV.getText();
                placaVehiculo = this.textPlaca.getText();
                marca = this.textMarca.getText();
                cilindraje = Integer.parseInt(this.textCilindraje.getText());
                capacidadDeCarga = Integer.parseInt(this.textCapacidadDeCarga.getText());
                modeloVehiculo = Integer.parseInt(this.comboModelo.getSelectedItem().toString());
                chevystar = this.comboChevy.getSelectedItem().toString();
                sistemaAbs = this.comboFrenos.getSelectedItem().toString();

                Vehiculos vehiculo = new Vehiculos();
                Fecha fechaInicio = new Fecha();
                Fecha fechaFin = new Fecha();

                if (agregarVehiculo.getvVehiculo().isEmpty()) {

                    vehiculo.setNombreVehiculo(nombreVehiculo);
                    vehiculo.setPlacaVehiculo(placaVehiculo);
                    vehiculo.setSistemaAbs(sistemaAbs);
                    vehiculo.setMarca(marca);
                    vehiculo.setCilindraje(cilindraje);
                    vehiculo.setCapacidadDeCarga(capacidadDeCarga);
                    vehiculo.setModeloVehiculo(modeloVehiculo);
                    vehiculo.setChevystar(chevystar);
                    vehiculo.setFechaInicio(fechaInicio);
                    vehiculo.setFechaFin(fechaFin);

                    this.agregarVehiculo.agregarVehiculo(vehiculo);
                    this.comboPlaca.addItem(placaVehiculo);
                    JOptionPane.showMessageDialog(frame, "Se ha creado el Vehiculo con placa " + placaVehiculo);

                } else {
                    for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
                        if (agregarVehiculo.getvVehiculo().get(i).getPlacaVehiculo().equals(placaVehiculo)) {
                            variableBandera = 1;
                        }
                    }
                    if (variableBandera == 1) {
                        JOptionPane.showMessageDialog(frame, "El vehiculo con placa " + String.valueOf(placaVehiculo) + " ya se encuentra registrado");
                    } else {

                        vehiculo.setNombreVehiculo(nombreVehiculo);
                        vehiculo.setPlacaVehiculo(placaVehiculo);
                        vehiculo.setSistemaAbs(sistemaAbs);
                        vehiculo.setMarca(marca);
                        vehiculo.setCilindraje(cilindraje);
                        vehiculo.setCapacidadDeCarga(capacidadDeCarga);
                        vehiculo.setModeloVehiculo(modeloVehiculo);
                        vehiculo.setChevystar(chevystar);
                        vehiculo.setFechaInicio(fechaInicio);
                        vehiculo.setFechaFin(fechaFin);

                        agregarVehiculo.agregarVehiculo(vehiculo);
                        this.comboPlaca.addItem(placaVehiculo);
                        JOptionPane.showMessageDialog(frame, "Se ha creado el Vehiculo con placa " + placaVehiculo);

                    }
                }
            }

        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(frame, "Todos los campos deben estar completos!");
        }
    }//GEN-LAST:event_botonAgregarVehiculoActionPerformed

private void botonConsultaVehiculoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonConsultaVehiculoActionPerformed
    DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);



    for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
        Vehiculos e = agregarVehiculo.getvVehiculo().get(i);
        String proveedor, nombreVehiculo, placaVehiculo, sistemaAbs, marca, chevystar;
        int cilindraje, capacidadDeCarga, modeloVehiculo;


        float valorServicio;
        Fecha fechaInicio;
        Fecha fechaFin;
        nombreVehiculo = e.getNombreVehiculo();
        placaVehiculo = e.getPlacaVehiculo();
        marca = e.getMarca();
        modeloVehiculo = e.getModeloVehiculo();
        cilindraje = e.getCilindraje();
        capacidadDeCarga = e.getCapacidadDeCarga();
        sistemaAbs = e.getSistemaAbs();
        chevystar = e.getChevystar();
        fechaInicio = e.getFechaInicio();
        fechaFin = e.getFechaFin();
        proveedor = e.getProveedor();
        valorServicio = e.getValorPagadoServicio();


        Object obj[] = {nombreVehiculo, placaVehiculo, marca, modeloVehiculo, cilindraje, capacidadDeCarga, sistemaAbs, chevystar, fechaInicio, fechaFin, proveedor, valorServicio};
        modelo.addRow(obj);


    }
}//GEN-LAST:event_botonConsultaVehiculoActionPerformed

private void botonAgregarItinerarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarItinerarioActionPerformed

    String nombreDeServicio, descripcionItinerario, nombreConductor, ciudadOrigen, ciudadDestino, placaVehiculo;


    int diaRegistro, diaSalida, diaEntrega, mesRegistro, mesSalida, mesEntrega, anioRegistro, anioSalida, anioEntrega;

    try {
        Itinerario itinerario = new Itinerario();
        Fecha fechaRegistro = new Fecha();
        Fecha fechaSalida = new Fecha();
        Fecha fechaEntrega = new Fecha();

        nombreDeServicio = this.textNombreServicio.getText();
        descripcionItinerario = this.textDescripcion.getText();
        diaRegistro = Integer.parseInt(this.comboDiaRegistro.getSelectedItem().toString());
        diaSalida = Integer.parseInt(this.comboDiaSalida.getSelectedItem().toString());
        diaEntrega = Integer.parseInt(this.comboDiaEntrega.getSelectedItem().toString());
        mesRegistro = Integer.parseInt(this.comboMesRegistro.getSelectedItem().toString());
        mesSalida = Integer.parseInt(this.comboMesSalida.getSelectedItem().toString());
        mesEntrega = Integer.parseInt(this.comboMesEntrega.getSelectedItem().toString());
        anioEntrega = Integer.parseInt(this.comboAnioEntrega.getSelectedItem().toString());
        anioRegistro = Integer.parseInt(this.comboAnioRegistro.getSelectedItem().toString());
        anioSalida = Integer.parseInt(this.comboAnioSalida.getSelectedItem().toString());
        nombreConductor = this.comboConductor.getSelectedItem().toString();
        ciudadOrigen = this.comboCiudadOrigen.getSelectedItem().toString();
        ciudadDestino = this.comboCiudadDestino.getSelectedItem().toString();
        placaVehiculo = this.comboPlaca.getSelectedItem().toString();

        fechaRegistro.setDia(diaRegistro);
        fechaRegistro.setMes(mesRegistro);
        fechaRegistro.setAnio(anioRegistro);

        fechaEntrega.setDia(diaEntrega);
        fechaEntrega.setMes(mesEntrega);
        fechaEntrega.setAnio(anioEntrega);

        fechaSalida.setDia(diaSalida);
        fechaSalida.setMes(mesSalida);
        fechaSalida.setAnio(anioSalida);

        itinerario.setNombreDeServicio(nombreDeServicio);
        itinerario.setDescripcionItinerario(descripcionItinerario);
        itinerario.setFechaDeEntrega(fechaEntrega);
        itinerario.setFechaDeRegistro(fechaRegistro);
        itinerario.setFechaDeSalida(fechaSalida);

        for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
            String nombreEmpleado = agregar.getvEmpleado().get(i).getNombreEmpleado();
            if (nombreEmpleado.equals(nombreConductor)) {
                itinerario.setNombreDelConductor(agregar.getvEmpleado().get(i));
                break;
            }
        }
        for (int i = 0; i < agregarCiudad.getvCiudad().size(); i++) {
            String ciudad = agregarCiudad.getvCiudad().get(i).getNombreCiudad();
            if (ciudad.equals(ciudadOrigen)) {
                itinerario.setCiudadOrigen(agregarCiudad.getvCiudad().get(i));
            }
        }
        for (int i = 0; i < agregarCiudad.getvCiudad().size(); i++) {
            String ciudad = agregarCiudad.getvCiudad().get(i).getNombreCiudad();
            if (ciudad.equals(ciudadDestino)) {
                itinerario.setCiudadDestino(agregarCiudad.getvCiudad().get(i));
            }
        }
        for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
            String placa = agregarVehiculo.getvVehiculo().get(i).getPlacaVehiculo();
            if (placa.equals(placaVehiculo)) {
                itinerario.setPlaca(agregarVehiculo.getvVehiculo().get(i));
            }
        }

        agregarItinerario.agregarItinerario(itinerario);
        JOptionPane.showMessageDialog(frame, "Se ha creado el itinerario de " + ciudadOrigen + " a " + ciudadDestino);

    } catch (NumberFormatException nfe) {
        JOptionPane.showMessageDialog(frame, "Todos los campos deben estar completos!");
    }
}//GEN-LAST:event_botonAgregarItinerarioActionPerformed
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed


    // TODO add your handling code here:


    DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);


    for (int i = 0; i
            < agregarItinerario.getvItinerario().size(); i++) {
        Itinerario e = agregarItinerario.getvItinerario().get(i);


        String nombreDeServicio, descripcionItinerario;

        Empleado nombreConductor;
        Ciudad ciudadOrigen, ciudadDestino;
        Vehiculos placaVehiculo;

        Fecha fechaRegistro, fechaSalida, fechaEntrada;

        nombreDeServicio = e.getNombreDeServicio();
        descripcionItinerario = e.getDescripcionItinerario();
        nombreConductor = e.getNombreDelConductor();
        ciudadOrigen = e.getCiudadOrigen();
        ciudadDestino = e.getCiudadDestino();
        placaVehiculo = e.getPlaca();
        fechaRegistro = e.getFechaDeRegistro();
        fechaSalida = e.getFechaDeSalida();
        fechaEntrada = e.getFechaDeEntrega();

        Object obj[] = {nombreDeServicio, nombreConductor, fechaRegistro, ciudadOrigen, fechaSalida, ciudadDestino, fechaEntrada, placaVehiculo, descripcionItinerario};
        modelo.addRow(obj);

    }


}//GEN-LAST:event_jButton3ActionPerformed

private void textNombreServicioFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textNombreServicioFocusGained
    // TODO add your handling code here:
}//GEN-LAST:event_textNombreServicioFocusGained

private void textCapacidadDeCargaFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_textCapacidadDeCargaFocusGained
    textCapacidadDeCarga.setDocument(new LimitadorCaracteres());
}//GEN-LAST:event_textCapacidadDeCargaFocusGained
private void botonAgregarCiudadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAgregarCiudadActionPerformed

    String nuevaCiudad;
    int variableBandera = 0;
    try {
        nuevaCiudad = this.textNuevaCiudad.getText();
        Ciudad ciudad = new Ciudad();
        if (agregarCiudad.getvCiudad().isEmpty()) {
            ciudad.setNombreCiudad(nuevaCiudad);
            agregarCiudad.agregarCiudad(ciudad);
            comboCiudadDestino.addItem(nuevaCiudad);
            comboCiudadOrigen.addItem(nuevaCiudad);
            JOptionPane.showMessageDialog(frame, "Se ha incluido a " + nuevaCiudad + " en el listado de ciudades");
        } else {
            for (int i = 0; i
                    < agregarCiudad.getvCiudad().size(); i++) {
                if (agregarCiudad.getvCiudad().get(i).getNombreCiudad().equals(nuevaCiudad)) {
                    variableBandera = 1;
                }
            }
            if (variableBandera == 1) {
                JOptionPane.showMessageDialog(frame, "La ciudad " + String.valueOf(nuevaCiudad) + " ya se encuentra registrado");
            } else {
                ciudad.setNombreCiudad(nuevaCiudad);
                agregarCiudad.agregarCiudad(ciudad);
                comboCiudadDestino.addItem(nuevaCiudad);
                comboCiudadOrigen.addItem(nuevaCiudad);
                JOptionPane.showMessageDialog(frame, "Se ha incluido a " + nuevaCiudad + " en el listado de ciudades");
            }
            this.textNuevaCiudad.setText("");
        }
    } catch (NumberFormatException nfe) {
    }

}//GEN-LAST:event_botonAgregarCiudadActionPerformed

private void botonConsultarCiudadesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonConsultarCiudadesActionPerformed

    DefaultTableModel modelo = (DefaultTableModel) this.tablaCiudad.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);





    for (int i = 0; i
            < agregarCiudad.getvCiudad().size(); i++) {
        Ciudad e = agregarCiudad.getvCiudad().get(i);
        String ciudad;
        ciudad = e.getNombreCiudad();


        Object obj[] = {ciudad};
        modelo.addRow(obj);




    }

}//GEN-LAST:event_botonConsultarCiudadesActionPerformed

private void comboChevyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboChevyActionPerformed

    String opcion;


    int opcion1;
    opcion = this.comboChevy.getSelectedItem().toString();



    if (opcion != "Si") {
        this.comboDiaInicio.setEnabled(false);
        this.comboMesInicio.setEnabled(false);
        this.comboAnioInicio.setEnabled(false);
        this.comboDiaFin.setEnabled(false);
        this.comboMesFin.setEnabled(false);
        this.comboAnioFin.setEnabled(false);
        this.textProveedor.setEditable(false);
        this.textValorPagadoServicio.setEnabled(false);
    } else {
        this.comboDiaInicio.setEnabled(true);
        this.comboMesInicio.setEnabled(true);
        this.comboAnioInicio.setEnabled(true);
        this.comboDiaFin.setEnabled(true);
        this.comboMesFin.setEnabled(true);
        this.comboAnioFin.setEnabled(true);
        this.textProveedor.setEditable(true);
        this.textValorPagadoServicio.setEnabled(true);
    }
}//GEN-LAST:event_comboChevyActionPerformed

private void botonCalcularNominaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCalcularNominaActionPerformed
    // TODO add your handling code here:
    float nomina = 0;

    if (agregar.getvEmpleado().isEmpty()) {
        JOptionPane.showMessageDialog(frame, "No se encuentra datos disponibles para calcular", "TOTAL A PAGAR NOMINA", 1);
    } else {

        for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
            nomina = agregar.getvEmpleado().get(i).getSalario() + nomina;
        }
        JOptionPane.showMessageDialog(null, "El valor total de la nomina es de " + String.valueOf(nomina), "TOTAL A PAGAR NOMINA", 1);
    }



}//GEN-LAST:event_botonCalcularNominaActionPerformed

private void botonValorAPagarChevystarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonValorAPagarChevystarActionPerformed
    // TODO add your handling code here:
    float valorChevystar = 0;

    if (agregarVehiculo.getvVehiculo().isEmpty()) {
        JOptionPane.showMessageDialog(null, "No se encuentra datos disponibles para calcular", "TOTAL A PAGAR CHEVYSTAR", 1);
    } else {

        for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
            valorChevystar = agregarVehiculo.getvVehiculo().get(i).getValorPagadoServicio() + valorChevystar;
        }

        JOptionPane.showMessageDialog(null, "El valor total a pagar por servicios de ChevyStar es " + String.valueOf(valorChevystar), "TOTAL A PAGAR CHEVYSTAR", 1);


    }
}//GEN-LAST:event_botonValorAPagarChevystarActionPerformed

private void botonBuscarPlacaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonBuscarPlacaActionPerformed

    String bPlaca = JOptionPane.showInputDialog(null, "Ingrese el numero de placa a consultar", "Consultar por placa", 3);
    int bandera = 0;
    DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);

    if (agregarVehiculo.getvVehiculo().isEmpty()) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun vehiculo con la placa " + bPlaca, "Busqueda invalida", 1);
    } else {
        for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
            if (agregarVehiculo.getvVehiculo().get(i).getPlacaVehiculo().equals(bPlaca)) {
                Vehiculos e = agregarVehiculo.getvVehiculo().get(i);
                String proveedor, nombreVehiculo, placaVehiculo, sistemaAbs, marca, chevystar;
                int cilindraje, capacidadDeCarga, modeloVehiculo;
                float valorServicio;
                Fecha fechaInicio;
                Fecha fechaFin;

                nombreVehiculo = e.getNombreVehiculo();
                placaVehiculo = e.getPlacaVehiculo();
                marca = e.getMarca();
                modeloVehiculo = e.getModeloVehiculo();
                cilindraje = e.getCilindraje();
                capacidadDeCarga = e.getCapacidadDeCarga();
                sistemaAbs = e.getSistemaAbs();
                chevystar = e.getChevystar();
                fechaInicio = e.getFechaInicio();
                fechaFin = e.getFechaFin();
                proveedor = e.getProveedor();
                valorServicio = e.getValorPagadoServicio();


                Object obj[] = {nombreVehiculo, placaVehiculo, marca, modeloVehiculo, cilindraje, capacidadDeCarga, sistemaAbs, chevystar, fechaInicio, fechaFin, proveedor, valorServicio};
                modelo.addRow(obj);
                bandera = 1;
            }

        }
    }
    if (bandera == 0) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun vehiculo con la placa " + bPlaca, "Busqueda invalida", 1);
    }

}//GEN-LAST:event_botonBuscarPlacaActionPerformed

private void botonBuscarNombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonBuscarNombreActionPerformed

    String bNombre = JOptionPane.showInputDialog(null, "Ingrese el nombre a consultar", "Consultar por nombre", 3);
    int bandera = 0;
    DefaultTableModel modelo = (DefaultTableModel) this.tablaEmpleados.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);

    if (agregar.getvEmpleado().isEmpty()) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun empleado con el nombre " + bNombre, "Busqueda invalida", 2);
    } else {
        for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
            if (agregar.getvEmpleado().get(i).getNombreEmpleado().toLowerCase().equals(bNombre.toLowerCase())) {

                Empleado e = agregar.getvEmpleado().get(i);
                long cedula;
                String nombre, apellido, email, foto, telefono;
                float salario;
                Fecha fecha;

                nombre = e.getNombreEmpleado();
                apellido = e.getApellidoEmpleado();
                cedula = e.getCedula();
                email = e.getEmail();
                salario = e.getSalario();
                foto = e.getFotoEmpleado();
                telefono = e.getTelefonoEmpleado();
                fecha = e.getFechaNacimiento();

                Object obj[] = {cedula, nombre, apellido, fecha, email, salario, telefono, foto};
                modelo.addRow(obj);
                bandera = 1;
            } else {
            }

        }
    }
    if (bandera == 0) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun empleado con el nombre " + bNombre, "Busqueda invalida", 1);
    }



}//GEN-LAST:event_botonBuscarNombreActionPerformed

private void botonBuscarCedulaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonBuscarCedulaActionPerformed
    String bCedula = JOptionPane.showInputDialog(null, "Ingrese el numero de cedula a consultar", "Consultar por cedula", 3);
    int bandera = 0;
    DefaultTableModel modelo = (DefaultTableModel) this.tablaEmpleados.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);

    if (agregar.getvEmpleado().isEmpty()) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun empleado con la cedula " + bCedula, "Busqueda invalida", 2);
    } else {
        for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
            if (agregar.getvEmpleado().get(i).getCedula() == Integer.parseInt(bCedula)) {

                Empleado e = agregar.getvEmpleado().get(i);
                long cedula;
                String nombre, apellido, email, foto, telefono;
                float salario;
                Fecha fecha;

                nombre = e.getNombreEmpleado();
                apellido = e.getApellidoEmpleado();
                cedula = e.getCedula();
                email = e.getEmail();
                salario = e.getSalario();
                foto = e.getFotoEmpleado();
                telefono = e.getTelefonoEmpleado();
                fecha = e.getFechaNacimiento();

                Object obj[] = {cedula, nombre, apellido, fecha, email, salario, telefono, foto};
                modelo.addRow(obj);
                bandera = 1;
            }
        }
    }
    if (bandera == 0) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun empleado con la cedula " + bCedula, "Busqueda invalida", 1);

    }

}//GEN-LAST:event_botonBuscarCedulaActionPerformed

private void botonBuscarAbsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonBuscarAbsActionPerformed
    int bandera = 0;
    DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);

    if (agregarVehiculo.getvVehiculo().isEmpty()) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun vehiculo registrado ", "Busqueda invalida", 1);
    } else {
        for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
            if (agregarVehiculo.getvVehiculo().get(i).getSistemaAbs().equals("ABS")) {
                Vehiculos e = agregarVehiculo.getvVehiculo().get(i);
                String proveedor, nombreVehiculo, placaVehiculo, sistemaAbs, marca, chevystar;
                int cilindraje, capacidadDeCarga, modeloVehiculo;
                float valorServicio;
                Fecha fechaInicio;
                Fecha fechaFin;

                nombreVehiculo = e.getNombreVehiculo();
                placaVehiculo = e.getPlacaVehiculo();
                marca = e.getMarca();
                modeloVehiculo = e.getModeloVehiculo();
                cilindraje = e.getCilindraje();
                capacidadDeCarga = e.getCapacidadDeCarga();
                sistemaAbs = e.getSistemaAbs();
                chevystar = e.getChevystar();
                fechaInicio = e.getFechaInicio();
                fechaFin = e.getFechaFin();
                proveedor = e.getProveedor();
                valorServicio = e.getValorPagadoServicio();


                Object obj[] = {nombreVehiculo, placaVehiculo, marca, modeloVehiculo, cilindraje, capacidadDeCarga, sistemaAbs, chevystar, fechaInicio, fechaFin, proveedor, valorServicio};
                modelo.addRow(obj);
                bandera = 1 + bandera;
            }


        }
    }
    if (bandera == 0) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun vehiculo registrado con sistema de frenos ABS ", "Busqueda invalida", 1);
    }


}//GEN-LAST:event_botonBuscarAbsActionPerformed

private void botonBuscarVehiculosChevystarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonBuscarVehiculosChevystarActionPerformed

    int bandera = 0;
    DefaultTableModel modelo = (DefaultTableModel) this.tablaVehiculos.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);

    if (agregarVehiculo.getvVehiculo().isEmpty()) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun vehiculo registrado ", "Busqueda invalida", 1);
    } else {
        for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
            if (agregarVehiculo.getvVehiculo().get(i).getChevystar().equals("Si")) {
                Vehiculos e = agregarVehiculo.getvVehiculo().get(i);
                String proveedor, nombreVehiculo, placaVehiculo, sistemaAbs, marca, chevystar;
                int cilindraje, capacidadDeCarga, modeloVehiculo;
                float valorServicio;
                Fecha fechaInicio;
                Fecha fechaFin;

                nombreVehiculo = e.getNombreVehiculo();
                placaVehiculo = e.getPlacaVehiculo();
                marca = e.getMarca();
                modeloVehiculo = e.getModeloVehiculo();
                cilindraje = e.getCilindraje();
                capacidadDeCarga = e.getCapacidadDeCarga();
                sistemaAbs = e.getSistemaAbs();
                chevystar = e.getChevystar();
                fechaInicio = e.getFechaInicio();
                fechaFin = e.getFechaFin();
                proveedor = e.getProveedor();
                valorServicio = e.getValorPagadoServicio();

                Object obj[] = {nombreVehiculo, placaVehiculo, marca, modeloVehiculo, cilindraje, capacidadDeCarga, sistemaAbs, chevystar, fechaInicio, fechaFin, proveedor, valorServicio};
                modelo.addRow(obj);
                bandera = 1 + bandera;
            }
        }
    }
    if (bandera == 0) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun vehiculo registrado con ChevyStar", "Busqueda invalida", 1);
    }

}//GEN-LAST:event_botonBuscarVehiculosChevystarActionPerformed

private void buscarDestinosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarDestinosActionPerformed
    // TODO add your handling code here:


    String bDestino = JOptionPane.showInputDialog(null, "Ingrese el nombre de la ciudad destino a consultar", "Consultar por destinos", 3);
    int bandera = 0;
    DefaultTableModel modelo = (DefaultTableModel) this.tablaItinerario.getModel(); // para manipular el objeto en un modelo
    modelo.setRowCount(0);

    if (agregarItinerario.getvItinerario().isEmpty()) {
        JOptionPane.showMessageDialog(null, "No se encuentra ninguna ciudad destino con el nombre " + bDestino, "Busqueda invalida", 2);
    } else {
        for (int i = 0; i < agregarItinerario.getvItinerario().size(); i++) {
            if (agregarItinerario.getvItinerario().get(i).getCiudadDestino().toString().toLowerCase().equals(bDestino.toLowerCase())) {

                Itinerario e = agregarItinerario.getvItinerario().get(i);
                String nombreDeServicio, descripcionItinerario;
                Empleado nombreConductor;
                Ciudad ciudadOrigen, ciudadDestino;
                Vehiculos placaVehiculo;

                Fecha fechaRegistro, fechaSalida, fechaEntrada;

                nombreDeServicio = e.getNombreDeServicio();
                descripcionItinerario = e.getDescripcionItinerario();
                nombreConductor = e.getNombreDelConductor();
                ciudadOrigen = e.getCiudadOrigen();
                ciudadDestino = e.getCiudadDestino();
                placaVehiculo = e.getPlaca();
                fechaRegistro = e.getFechaDeRegistro();
                fechaSalida = e.getFechaDeSalida();
                fechaEntrada = e.getFechaDeEntrega();

                Object obj[] = {nombreDeServicio, nombreConductor, fechaRegistro, ciudadOrigen, fechaSalida, ciudadDestino, fechaEntrada, placaVehiculo, descripcionItinerario};
                modelo.addRow(obj);





                bandera = 1;
            } else {
            }

        }
    }
    if (bandera == 0) {
        JOptionPane.showMessageDialog(null, "No se encuentra ningun destino para la ciudad " + bDestino, "Busqueda invalida", 1);
    }



}//GEN-LAST:event_buscarDestinosActionPerformed

private void botonGuardadEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGuardadEmpleadoActionPerformed

    try {
        File fichero = new File("Empleados.txt");
        fichero.delete();
        fichero.createNewFile();
        Vector lista;
        lista = new Vector();
        FileReader leer = new FileReader("Empleados.txt");
        BufferedReader bufer = new BufferedReader(leer);
        int cont = 0;
        String linea = "";
        while (cont == 0) {
            linea = bufer.readLine();
            if (linea == null) {
                cont = 1;
            } else {
                lista.addElement(linea);
            }

        }
        for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
            lista.addElement(agregar.getvEmpleado().get(i).getCedula() + ";" + agregar.getvEmpleado().get(i).getNombreEmpleado() + ";" + agregar.getvEmpleado().get(i).getApellidoEmpleado() + ";" + agregar.getvEmpleado().get(i).getEmail() + ";" + agregar.getvEmpleado().get(i).getFechaNacimiento() + ";" + agregar.getvEmpleado().get(i).getSalario() + ";" + agregar.getvEmpleado().get(i).getTelefonoEmpleado() + ";" + agregar.getvEmpleado().get(i).getFotoEmpleado());
        }
        FileWriter escribir = new FileWriter("Empleados.txt");
        BufferedWriter bufer1 = new BufferedWriter(escribir);
        for (int j = 0; j < lista.size(); j++) {
            bufer1.write((String) lista.elementAt(j));
            bufer1.newLine();
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA
        bufer1.close();///Para cerrar el BUFER DE ESCRITURA
        JOptionPane.showMessageDialog(null, "Se ha guardado ", "Busqueda invalida", 1);

    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }

}//GEN-LAST:event_botonGuardadEmpleadoActionPerformed

private void botonImportarEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonImportarEmpleadoActionPerformed

    try {
        Vector lista;
        lista = new java.util.Vector();
        FileReader leer = new FileReader("Empleados.txt");
        BufferedReader bufer = new BufferedReader(leer);
        String linea, linea2 = "";
        long cedula;
        String fechaCompleta;
        String separadorFecha = "/";
        int contador = 0;
        int contadorFecha = 0;

        while ((linea = bufer.readLine()) != null) {
            int i = 0;
            while (i == 0) {
                Fecha fechaNacimiento = new Fecha();
                Empleado empleado = new Empleado();
                String[] datos = linea.split(";");
                empleado.setCedula(Long.parseLong(datos[0]));
                empleado.setNombreEmpleado(datos[1]);
                this.comboConductor.addItem(datos[1]);
                empleado.setApellidoEmpleado(datos[2]);
                empleado.setEmail(datos[3]);
                fechaCompleta = datos[4];
                String[] datoFecha = fechaCompleta.split("/");
                fechaNacimiento.setDia(Integer.parseInt(datoFecha[0]));
                fechaNacimiento.setMes(Integer.parseInt(datoFecha[1]));
                fechaNacimiento.setAnio(Integer.parseInt(datoFecha[2]));
                empleado.setFechaNacimiento(fechaNacimiento);
                empleado.setSalario(Float.parseFloat(datos[5]));
                empleado.setTelefonoEmpleado(datos[6]);
                empleado.setFotoEmpleado(datos[7]);
                i = 1;
                contador = contador + 1;
                agregar.getvEmpleado().add(empleado);
            }
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA

        JOptionPane.showMessageDialog(null, "Se ha cargado la información de los empleados ", "IMPORTACIÓN EXITOSA", 1);


    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }
}//GEN-LAST:event_botonImportarEmpleadoActionPerformed

private void botonGuardadVehiculoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGuardadVehiculoActionPerformed

    try {
        File fichero = new File("Vehiculos.txt");
        fichero.delete();
        fichero.createNewFile();
        Vector lista;
        lista = new Vector();
        FileReader leer = new FileReader("Vehiculos.txt");
        BufferedReader bufer = new BufferedReader(leer);
        int cont = 0;
        String linea = "";
        while (cont == 0) {
            linea = bufer.readLine();
            if (linea == null) {
                cont = 1;
            } else {
                lista.addElement(linea);
            }
        }
        for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
            lista.addElement(agregarVehiculo.getvVehiculo().get(i).getNombreVehiculo() + ";" + agregarVehiculo.getvVehiculo().get(i).getPlacaVehiculo() + ";" + agregarVehiculo.getvVehiculo().get(i).getMarca() + ";" + agregarVehiculo.getvVehiculo().get(i).getModeloVehiculo() + ";" + agregarVehiculo.getvVehiculo().get(i).getCilindraje() + ";"
                    + agregarVehiculo.getvVehiculo().get(i).getCapacidadDeCarga() + ";" + agregarVehiculo.getvVehiculo().get(i).getChevystar() + ";" + agregarVehiculo.getvVehiculo().get(i).getSistemaAbs() + ";" + agregarVehiculo.getvVehiculo().get(i).getFechaInicio() + ";" + agregarVehiculo.getvVehiculo().get(i).getFechaFin() + ";" + agregarVehiculo.getvVehiculo().get(i).getProveedor() + ";" + agregarVehiculo.getvVehiculo().get(i).getValorPagadoServicio());
        }
        FileWriter escribir = new FileWriter("Vehiculos.txt");
        BufferedWriter bufer1 = new BufferedWriter(escribir);
        for (int j = 0; j < lista.size(); j++) {
            bufer1.write((String) lista.elementAt(j));
            bufer1.newLine();
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA
        bufer1.close();///Para cerrar el BUFER DE ESCRITURA
        JOptionPane.showMessageDialog(null, "Se ha guardado el archivo", "EXPORTAR", 1);
    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }
}//GEN-LAST:event_botonGuardadVehiculoActionPerformed

private void botonImportarVehiculoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonImportarVehiculoActionPerformed

    try {
        Vector lista;
        lista = new java.util.Vector();
        FileReader leer = new FileReader("Vehiculos.txt");
        BufferedReader bufer = new BufferedReader(leer);
        String linea = "";
        String fechaCompletaInicio;
        String fechaCompletaFin;
        int contador = 0;
        while ((linea = bufer.readLine()) != null) {
//            int i = 0;
//            while (i == 0) {
            Vehiculos vehiculo = new Vehiculos();
            Fecha fechaInicio = new Fecha();
            Fecha fechaFin = new Fecha();
            String[] datos = linea.split(";");
            vehiculo.setNombreVehiculo(datos[0]);
            vehiculo.setPlacaVehiculo(datos[1]);
            this.comboPlaca.addItem(datos[1]);
            vehiculo.setMarca(datos[2]);
            vehiculo.setModeloVehiculo(Integer.parseInt(datos[3]));
            vehiculo.setCilindraje(Integer.parseInt(datos[4]));
            vehiculo.setCapacidadDeCarga(Integer.parseInt(datos[5]));
            vehiculo.setChevystar(datos[6]);
            vehiculo.setSistemaAbs(datos[7]);
            fechaCompletaInicio = datos[8];
            String[] datoFechaInicio = fechaCompletaInicio.split("/");
            fechaInicio.setDia(Integer.parseInt(datoFechaInicio[0]));
            fechaInicio.setMes(Integer.parseInt(datoFechaInicio[1]));
            fechaInicio.setAnio(Integer.parseInt(datoFechaInicio[2]));
            fechaCompletaFin = datos[9];
            String[] datoFechaFin = fechaCompletaFin.split("/");
            fechaFin.setDia(Integer.parseInt(datoFechaInicio[0]));
            fechaFin.setMes(Integer.parseInt(datoFechaInicio[1]));
            fechaFin.setAnio(Integer.parseInt(datoFechaInicio[2]));
            vehiculo.setFechaInicio(fechaInicio);
            vehiculo.setFechaFin(fechaFin);
            vehiculo.setProveedor(datos[10]);
            vehiculo.setValorPagadoServicio(Float.parseFloat(datos[11]));
//                i = 1;
            agregarVehiculo.getvVehiculo().add(vehiculo);
//            }
            contador = contador + 1;
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA
        JOptionPane.showMessageDialog(null, "Se ha actualizado la información de los vehiculos", "Busqueda invalida", 1);
    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }

}//GEN-LAST:event_botonImportarVehiculoActionPerformed

private void botonGuardadCiudadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGuardadCiudadActionPerformed

    try {
        File fichero = new File("Ciudades.txt");
        fichero.delete();
        fichero.createNewFile();
        Vector lista;
        lista = new Vector();
        FileReader leer = new FileReader("Ciudades.txt");
        BufferedReader bufer = new BufferedReader(leer);
        int cont = 0;
        String linea = "";
        while (cont == 0) {
            linea = bufer.readLine();
            if (linea == null) {
                cont = 1;
            } else {
                lista.addElement(linea);
            }
        }
        for (int i = 0; i < agregarCiudad.getvCiudad().size(); i++) {
            lista.addElement(agregarCiudad.getvCiudad().get(i).getNombreCiudad());
        }
        FileWriter escribir = new FileWriter("Ciudades.txt");
        BufferedWriter bufer1 = new BufferedWriter(escribir);
        for (int j = 0; j < lista.size(); j++) {
            bufer1.write((String) lista.elementAt(j));
            bufer1.newLine();
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA
        bufer1.close();///Para cerrar el BUFER DE ESCRITURA
        JOptionPane.showMessageDialog(null, "Se ha guardado el archivo", "EXPORTAR", 1);
    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }

}//GEN-LAST:event_botonGuardadCiudadActionPerformed

private void botonImportarCiudadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonImportarCiudadActionPerformed
    try {
        Vector lista;
        lista = new java.util.Vector();
        FileReader leer = new FileReader("Ciudades.txt");
        BufferedReader bufer = new BufferedReader(leer);
        String linea = "";
        int contador = 0;
        while ((linea = bufer.readLine()) != null) {
            Ciudad ciudad = new Ciudad();
            ciudad.setNombreCiudad(linea);
            this.comboCiudadOrigen.addItem(linea);
            this.comboCiudadDestino.addItem(linea);
            agregarCiudad.getvCiudad().add(ciudad);
            contador = contador + 1;
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA
        JOptionPane.showMessageDialog(null, "Se ha actualizado la información de Ciudadess", "CARGA EXITOSA", 1);
    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }
}//GEN-LAST:event_botonImportarCiudadActionPerformed

private void botonGuardadItinerarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGuardadItinerarioActionPerformed

    try {
        File fichero = new File("Itinerarios.txt");
        fichero.delete();
        fichero.createNewFile();
        Vector lista;
        lista = new Vector();
        FileReader leer = new FileReader("Itinerarios.txt");
        BufferedReader bufer = new BufferedReader(leer);
        int cont = 0;
        String linea = "";
        while (cont == 0) {
            linea = bufer.readLine();
            if (linea == null) {
                cont = 1;
            } else {
                lista.addElement(linea);
            }
        }
        for (int i = 0; i < agregarItinerario.getvItinerario().size(); i++) {
            lista.addElement(agregarItinerario.getvItinerario().get(i).getNombreDeServicio() + ";" + agregarItinerario.getvItinerario().get(i).getNombreDelConductor().toString() + ";" + agregarItinerario.getvItinerario().get(i).getFechaDeRegistro() + ";" + agregarItinerario.getvItinerario().get(i).getCiudadOrigen().toString() + ";"
                    + agregarItinerario.getvItinerario().get(i).getFechaDeSalida().toString() + ";" + agregarItinerario.getvItinerario().get(i).getCiudadDestino().toString() + ";" + agregarItinerario.getvItinerario().get(i).getFechaDeEntrega().toString() + ";" + agregarItinerario.getvItinerario().get(i).getPlaca().toString() + ";"
                    + agregarItinerario.getvItinerario().get(i).getDescripcionItinerario());
        }
        FileWriter escribir = new FileWriter("Itinerarios.txt");
        BufferedWriter bufer1 = new BufferedWriter(escribir);
        for (int j = 0; j < lista.size(); j++) {
            bufer1.write((String) lista.elementAt(j));
            bufer1.newLine();
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA
        bufer1.close();///Para cerrar el BUFER DE ESCRITURA
        JOptionPane.showMessageDialog(null, "Se ha guardado el archivo", "EXPORTAR", 1);
    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }

}//GEN-LAST:event_botonGuardadItinerarioActionPerformed

private void botonImportarItinerarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonImportarItinerarioActionPerformed
    try {
        Vector lista;
        lista = new java.util.Vector();
        FileReader leer = new FileReader("Itinerarios.txt");
        BufferedReader bufer = new BufferedReader(leer);
        String linea = "";
        String fechaCompletaRegistro;
        String fechaCompletaEntrega;
        String fechaCompletaSalida;
        String conductor, placa, ciudad1, ciudad2;
        int contador = 0;
        while ((linea = bufer.readLine()) != null) {

            Vehiculos vehiculo = new Vehiculos();
            Fecha fechaRegistro = new Fecha();
            Fecha fechaEntrega = new Fecha();
            Fecha fechaSalida = new Fecha();
            Itinerario itinerario = new Itinerario();
            String[] datos = linea.split(";");
            itinerario.setNombreDeServicio(datos[0]);
            conductor = datos[1];

            for (int i = 0; i < agregar.getvEmpleado().size(); i++) {
                String nombreEmpleado = agregar.getvEmpleado().get(i).getNombreEmpleado();
                if (nombreEmpleado.equals(conductor)) {
                    itinerario.setNombreDelConductor(agregar.getvEmpleado().get(i));
                    break;
                }
            }
            fechaCompletaRegistro = datos[2];
            String[] datoFechaRegistro = fechaCompletaRegistro.split("/");
            fechaRegistro.setDia(Integer.parseInt(datoFechaRegistro[0]));
            fechaRegistro.setMes(Integer.parseInt(datoFechaRegistro[1]));
            fechaRegistro.setAnio(Integer.parseInt(datoFechaRegistro[2]));
            itinerario.setFechaDeRegistro(fechaRegistro);
            ciudad1 = datos[3];
            for (int i = 0; i < agregarCiudad.getvCiudad().size(); i++) {
                String ciudad = agregarCiudad.getvCiudad().get(i).getNombreCiudad();
                if (ciudad.equals(ciudad1)) {
                    itinerario.setCiudadOrigen(agregarCiudad.getvCiudad().get(i));
                }
            }
            fechaCompletaSalida = datos[4];
            String[] datoFechaSalida = fechaCompletaSalida.split("/");
            fechaSalida.setDia(Integer.parseInt(datoFechaSalida[0]));
            fechaSalida.setMes(Integer.parseInt(datoFechaSalida[1]));
            fechaSalida.setAnio(Integer.parseInt(datoFechaSalida[2]));
            itinerario.setFechaDeSalida(fechaSalida);
            ciudad2 = datos[5];
            for (int i = 0; i < agregarCiudad.getvCiudad().size(); i++) {
                String ciudad = agregarCiudad.getvCiudad().get(i).getNombreCiudad();
                if (ciudad.equals(ciudad2)) {
                    itinerario.setCiudadDestino(agregarCiudad.getvCiudad().get(i));
                }
            }
            fechaCompletaEntrega = datos[6];
            String[] datoFechaEntrega = fechaCompletaEntrega.split("/");
            fechaEntrega.setDia(Integer.parseInt(datoFechaEntrega[0]));
            fechaEntrega.setMes(Integer.parseInt(datoFechaEntrega[1]));
            fechaEntrega.setAnio(Integer.parseInt(datoFechaEntrega[2]));
            itinerario.setFechaDeEntrega(fechaEntrega);
            placa = datos[7];
            for (int i = 0; i < agregarVehiculo.getvVehiculo().size(); i++) {
                String placaVehiculo = agregarVehiculo.getvVehiculo().get(i).getPlacaVehiculo();
                if (placaVehiculo.equals(placa)) {
                    itinerario.setPlaca(agregarVehiculo.getvVehiculo().get(i));
                }
            }
            itinerario.setDescripcionItinerario(datos[8]);
            agregarItinerario.getvItinerario().add(itinerario);

            contador = contador + 1;
        }
        bufer.close();///Para cerrar el BUFER DE LECTURA
        JOptionPane.showMessageDialog(null, "Se ha actualizado la información de los vehiculos", "Busqueda invalida", 1);
    } catch (IOException e) {
        System.out.println("Error : " + e.getMessage());
    }

}//GEN-LAST:event_botonImportarItinerarioActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Interface().setVisible(true);

            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField TextApellido;
    private javax.swing.JButton botonAgregarCiudad;
    private javax.swing.JButton botonAgregarEmpleado;
    private javax.swing.JButton botonAgregarItinerario;
    private javax.swing.JButton botonAgregarVehiculo;
    private javax.swing.JButton botonBuscarAbs;
    private javax.swing.JButton botonBuscarCedula;
    private javax.swing.JButton botonBuscarNombre;
    private javax.swing.JButton botonBuscarPlaca;
    private javax.swing.JButton botonBuscarVehiculosChevystar;
    private javax.swing.JButton botonCalcularNomina;
    private javax.swing.JButton botonConsultaVehiculo;
    private javax.swing.JButton botonConsultarCiudades;
    private javax.swing.JButton botonConsultarEmpleado;
    private javax.swing.JButton botonGuardadCiudad;
    private javax.swing.JButton botonGuardadEmpleado;
    private javax.swing.JButton botonGuardadItinerario;
    private javax.swing.JButton botonGuardadVehiculo;
    private javax.swing.JButton botonImportarCiudad;
    private javax.swing.JButton botonImportarEmpleado;
    private javax.swing.JButton botonImportarItinerario;
    private javax.swing.JButton botonImportarVehiculo;
    private javax.swing.JButton botonValorAPagarChevystar;
    private javax.swing.JButton buscarDestinos;
    private javax.swing.JComboBox comboAnio;
    private javax.swing.JComboBox comboAnioEntrega;
    private javax.swing.JComboBox comboAnioFin;
    private javax.swing.JComboBox comboAnioInicio;
    private javax.swing.JComboBox comboAnioRegistro;
    private javax.swing.JComboBox comboAnioSalida;
    private javax.swing.JComboBox comboChevy;
    private javax.swing.JComboBox comboCiudadDestino;
    private javax.swing.JComboBox comboCiudadOrigen;
    private javax.swing.JComboBox comboConductor;
    private javax.swing.JComboBox comboDia;
    private javax.swing.JComboBox comboDiaEntrega;
    private javax.swing.JComboBox comboDiaFin;
    private javax.swing.JComboBox comboDiaInicio;
    private javax.swing.JComboBox comboDiaRegistro;
    private javax.swing.JComboBox comboDiaSalida;
    private javax.swing.JComboBox comboFrenos;
    private javax.swing.JComboBox comboMes;
    private javax.swing.JComboBox comboMesEntrega;
    private javax.swing.JComboBox comboMesFin;
    private javax.swing.JComboBox comboMesInicio;
    private javax.swing.JComboBox comboMesRegistro;
    private javax.swing.JComboBox comboMesSalida;
    private javax.swing.JComboBox comboModelo;
    private javax.swing.JComboBox comboPlaca;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel labelApellido;
    private javax.swing.JLabel labelCapacidadDeCarga;
    private javax.swing.JLabel labelCedula;
    private javax.swing.JLabel labelChevy;
    private javax.swing.JLabel labelCilindraje;
    private javax.swing.JLabel labelCiudadDestino;
    private javax.swing.JLabel labelCiudadOrigen;
    private javax.swing.JLabel labelDescripcionItinerario;
    private javax.swing.JLabel labelEmail;
    private javax.swing.JLabel labelFechaEntrega;
    private javax.swing.JLabel labelFechaFin;
    private javax.swing.JLabel labelFechaIncio;
    private javax.swing.JLabel labelFechaRegistro;
    private javax.swing.JLabel labelFechaSalida;
    private javax.swing.JLabel labelFoto;
    private javax.swing.JLabel labelItinerario;
    private javax.swing.JLabel labelMarca;
    private javax.swing.JLabel labelModelo;
    private javax.swing.JLabel labelNombre;
    private javax.swing.JLabel labelNombreConductor;
    private javax.swing.JLabel labelNombreServicio;
    private javax.swing.JLabel labelNombreV;
    private javax.swing.JLabel labelPlaca;
    private javax.swing.JLabel labelPlaca1;
    private javax.swing.JLabel labelProveedor;
    private javax.swing.JLabel labelSalario;
    private javax.swing.JLabel labelSistemaFrenos;
    private javax.swing.JLabel labelTelefono;
    private javax.swing.JLabel labelTitulo;
    private javax.swing.JLabel labelTituloVehiculo;
    private javax.swing.JLabel labelValorPagadoServicio;
    private javax.swing.JPanel panelVehiculos;
    private javax.swing.JTable tablaCiudad;
    private javax.swing.JTable tablaEmpleados;
    private javax.swing.JTable tablaItinerario;
    private javax.swing.JTable tablaVehiculos;
    private javax.swing.JTextField textCapacidadDeCarga;
    private javax.swing.JTextField textCedula;
    private javax.swing.JTextField textCilindraje;
    private javax.swing.JTextArea textDescripcion;
    private javax.swing.JTextField textEmail;
    private javax.swing.JTextField textFoto;
    private javax.swing.JTextField textMarca;
    private javax.swing.JTextField textNombre;
    private javax.swing.JTextField textNombreServicio;
    private javax.swing.JTextField textNombreV;
    private javax.swing.JTextField textNuevaCiudad;
    private javax.swing.JTextField textPlaca;
    private javax.swing.JTextField textProveedor;
    private javax.swing.JTextField textSalario;
    private javax.swing.JTextField textTelefono;
    private javax.swing.JTextField textValorPagadoServicio;
    // End of variables declaration//GEN-END:variables
}
